<template>
  <div>
    <tab-bar>
      <tab-bar-item linkPath="/home" activeColor="#1296db">
        <img slot="bar-item-icon" src="~assets/img/home.png" alt />
        <img slot="bar-item-icon-active" src="~assets/img/home_active.png" alt />
        <div slot="bar-item-text">首页</div>
      </tab-bar-item>
      <tab-bar-item linkPath="/category" activeColor="#1296db">
        <img slot="bar-item-icon" src="~assets/img/category.png" alt />
        <img slot="bar-item-icon-active" src="~assets/img/category_active.png" alt />
        <div slot="bar-item-text">分类</div>
      </tab-bar-item>
      <tab-bar-item linkPath="/cart" activeColor="#1296db">
        <img slot="bar-item-icon" src="~assets/img/cart.png" alt />
        <img slot="bar-item-icon-active" src="~assets/img/cart_active.png" alt />
        <div slot="bar-item-text">购物车</div>
      </tab-bar-item>
      <tab-bar-item linkPath="/profile" activeColor="#1296db">
        <img slot="bar-item-icon" src="~assets/img/profile.png" alt />
        <img slot="bar-item-icon-active" src="~assets/img/profile_active.png" alt />
        <div slot="bar-item-text">我的</div>
      </tab-bar-item>
    </tab-bar>
  </div>
</template>

<script>
// 导入组件
import TabBar from "cpns/tabbar/TabBar";
import TabBarItem from "cpns/tabbar/TabBarItem";

export default {
  name: "MainTabBar",
  components: {
    TabBar,
    TabBarItem,
  },
};
</script>

<style lang="less" scoped>
</style>